<?php

if (!defined('BASEPATH'))
     exit('No direct script access allowed');

class factory {

     function create($class_name, $your, $parameters) {

          // security checks on $class_name here
          require_once(EXT_LIB_PATH . $class_name . ".php");
          return new $class_name($your, $parameters);
     }

}
